var UserInfoModule = angular.module("UserInfoModule",[]);
UserInfoModule.controller("UserInfoCtrl",["$scope",
    function($scope){
        $scope.userInfo = {
            "email":"158101@qq.com",
            "password":"158101",
            "autoLogin":true
        };
        $scope.getFormData = function(){
            console.log($scope.userInfo);
        }
        $scope.setFormData = function(){
            $scope.userInfo = {
                "email":"1582223101@qq.com",
                "password":"1232358101",
                "autoLogin":false
            }
        }
        $scope.resetForm = function(){
            $scope.userInfo = {
                "email":"",
                "password":"",
                "autoLogin":false
            }
        }
    }
]);